package cn.com.nes.mybatis.agent.crm.mapper;

import cn.com.nes.mybatis.agent.crm.entity.CustomerHouse;
import cn.com.nes.site.service.crm.customer.bo.CustomerHouseBO;
import cn.com.nes.site.service.crm.customer.dto.CustomerHouseDTO;
import cn.com.nes.site.service.crm.customer.dto.HouseDTO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * 客户房屋表映射
 *
 * @Author: ShenWei
 * @Date: 2024/05/08/9:55
 */
public interface CustomerHouseMapper extends BaseMapper<CustomerHouse> {

    void deleteByCustomerIds(@Param("customerIdList") List<String> customerIdList, @Param("operateUserId") Long operateUserId, @Param("operateDate") Date operateDate);

    List<Long> getHouseIdListByHouseNumber(@Param("houseNumber") String houseNumber);

    List<CustomerHouseDTO> getHousePage(@Param("page") Page<CustomerHouseDTO> page, @Param("customerId") String customerId);


    List<HouseDTO> getCustomerHousePage(@Param("page") Page<HouseDTO> page, @Param("bo") CustomerHouseBO customerHouseBO);

}
